#include <xstring>

#pragma once
class CMemoryCounter
{
public:
	CMemoryCounter(void);
	~CMemoryCounter(void);
	enum
	{
		MC_Bytes = 0,
		MC_KBytes,
		MC_MBytes,
		MC_GBytes,
	};
	static void allocate(const unsigned long &size);
	static void free(const unsigned long &size);

	static double get_size_memory (const DWORD &param = MC_Bytes);
	static std::wstring get_SizeMemoryAsWString (const DWORD &param = MC_Bytes);
	static std::string get_SizeMemoryAsString (const DWORD &param = MC_Bytes);
private:
	static unsigned long memory_byte;
};

